﻿using System;
using System.IO;
using UnityEngine;

namespace SEXY
{
	// Token: 0x020002AE RID: 686
	[Serializable]
	public class CharFileInfoCustomMale : CharFileInfoCustom
	{
		// Token: 0x06001155 RID: 4437 RVA: 0x00070484 File Offset: 0x0006E684
		public CharFileInfoCustomMale() : base(Enum.GetNames(typeof(CharDefine.HairKindMale)).Length)
		{
			this.sex = 0;
			this.shapeValueFace = new float[CharDefine.cm_headshapename.Length];
			this.shapeValueBody = new float[CharDefine.cm_bodyshapename.Length];
			this.hairId = new int[this.hairKindNum];
			this.hairColor = new HSColorSet[this.hairKindNum];
			this.hairAcsColor = new HSColorSet[this.hairKindNum];
			this.MemberInitialize();
		}

		// Token: 0x06001156 RID: 4438 RVA: 0x00070518 File Offset: 0x0006E718
		private new void MemberInitialize()
		{
			base.MemberInitialize();
			this.matBeardId = 0;
			this.beardColor.SetDiffuseRGBA(Color.white);
			this.beardColor.hsvDiffuse.S = 1f;
			int[] array = new int[1];
			for (int i = 0; i < this.hairId.Length; i++)
			{
				this.hairId[i] = array[i];
				this.hairColor[i] = new HSColorSet();
				this.hairColor[i].hsvDiffuse = new HsvColor(30f, 0.5f, 0.7f);
				this.hairColor[i].hsvSpecular = new HsvColor(0f, 0f, 0.5f);
				this.hairColor[i].specularIntensity = 0.4f;
				this.hairColor[i].specularSharpness = 0.55f;
				this.hairAcsColor[i] = new HSColorSet();
				this.hairAcsColor[i].hsvDiffuse = new HsvColor(0f, 0.8f, 1f);
				this.hairAcsColor[i].hsvSpecular = new HsvColor(0f, 0f, 0.5f);
				this.hairAcsColor[i].specularIntensity = 0.4f;
				this.hairAcsColor[i].specularSharpness = 0.55f;
			}
			this.name = "俺";
			this.personality = 99;
		}

		// Token: 0x06001157 RID: 4439 RVA: 0x0007067C File Offset: 0x0006E87C
		protected override bool LoadSub(BinaryReader br, int customVer, int colorVer)
		{
			this.matBeardId = br.ReadInt32();
			this.beardColor.Load(br, colorVer);
			return true;
		}

		// Token: 0x06001158 RID: 4440 RVA: 0x00070698 File Offset: 0x0006E898
		protected override bool ModCheckSub()
		{
			return false;
		}

		// Token: 0x04001341 RID: 4929
		public int matBeardId;

		// Token: 0x04001342 RID: 4930
		public HSColorSet beardColor = new HSColorSet();
	}
}
